package appapi.dto.bridge;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/09/18 14:39
 */
@Data
@ApiModel
public class AiExceptionDto implements Serializable {
        private static final long serialVersionUID = 615441184765340345L;
        @ApiModelProperty(value = "记录Id")
        private Long id;
        @ApiModelProperty(value = "设备sn")
        @Excel(name = "设备SN",orderNum = "0",width = 50)
        private String deviceSn;
        @ApiModelProperty(value = "异常类型")
        @Excel(name = "异常类型",orderNum = "3",width = 50)
        private String alarmDetail;
        @ApiModelProperty(value = "告警对象")

        private String alarmSource;
        @ApiModelProperty(value = "告警来源")
        private String alarmKind;
        @ApiModelProperty(value = "层级")
        private Integer alarmLevel;
        @ApiModelProperty(value = "异常时间")
        @Excel(name = "异常时间",orderNum = "4",width = 50,format = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime timeStamp;
        @ApiModelProperty(value = "是否触发")
        private Boolean alarmTrigger;
        @ApiModelProperty(value = "实际值")
        private String alarmValue;
        @ApiModelProperty(value = "力矩百分比")
        private String alarmRate;
        @ApiModelProperty(value = "采集时间")
        @Excel(name = "采集时间",orderNum = "5",width = 50,format = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private LocalDateTime createTime;
        @ApiModelProperty(value = "异常状态 0待处理 1已处理")
        @Excel(name = "异常状态",orderNum = "6",width = 50)
        private Integer alarmStatus;
        @ApiModelProperty(value = "告警图片地址")
        private String alarmPicUrl;

        @ApiModelProperty(value = "所属项目")
        @Excel(name = "所属项目",orderNum = "2",width = 50)
        private String projName;
        @ApiModelProperty(value = "设备编号")
        private String deviceNo;
        @ApiModelProperty(value = "设备名称")
        @Excel(name = "设备名称",orderNum = "1",width = 50)
        private String deviceName;
}
